home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4223 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: newshost.lanl.gov!tanmoy
  2. From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: array passing problem
  5. Date: 02 Feb 1996 18:56:46 GMT
  6. Organization: Los Alamos National Laboratory
  7. Message-ID: <TANMOY.96Feb2115646@qcd.lanl.gov>
  8. References: <cl3kj4C00bkWMWlEJH@andrew.cmu.edu> <4esnml$7t5@orb.direct.ca>
  9. NNTP-Posting-Host: qcd.lanl.gov
  10. Mime-Version: 1.0
  11. Content-Type: text
  12. In-reply-to: etoivane@direct.ca's message of 2 Feb 1996 10:06:13 GMT
  13.  
  14. In article <4esnml$7t5@orb.direct.ca> etoivane@direct.ca (Ed Toivanen)
  15. writes: 
  16. <snip>
  17.    >void main(int argc, char **argv[])
  18.                  ^^^^^^^^? 
  19.             char **argv instead? 
  20.  
  21. char *argv[] and char **argv are currently completely equivalent in a
  22. parameter list. main must have return type int and not void.
  23.  
  24. I do not know what the questin is that you are trying to answer.
  25.  
  26. Cheers
  27. Tanmoy
  28.  
  29. --
  30. tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
  31. Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
  32. Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
  33. <http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
  34. internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
  35. fax: 1 (505) 665 3003   voice: 1 (505) 665 4733    [ Home: 1 (505) 662 5596 ]
  36.